package com.twu.biblioteca;

import org.junit.Test;
import java.io.*;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

public class testApp {
   @Test
    public void test(){

        BibliotecaApp b=new BibliotecaApp();
        assertEquals(b.bookPresent("Gone with the wind"), 0);  //Gone with the wind is not available
        assertEquals(b.bookPresent("Don Quixote"),1);    //Don Quixote is present in the books list
        assertTrue(b.bookPresent("The Kite Runner")==1);     //The Kite Runner is present
        assertNotNull(b.BookNames);     //Books list is not empty
    }
}
